# @Time    : 2021/1/19 14:22
# @Author  : LDY
# @Email   : 274884591@qq.com
# @File    : orderPom.py
# @desc    : 订货宝定位元素代码
# @Software: PyCharm
import time

from selenium.webdriver.support.wait import WebDriverWait
from Base.Decorator import get_parameters
from Base.openBrowser import OpenBrowser
from selenium.webdriver.common.action_chains import ActionChains
from Config.Config import Dir


class OrderPom:
    def __init__(self):
        self.dr = OpenBrowser.get_driver(Dir.OrderUrl)
        self.wait = WebDriverWait(self.dr, 10, 0.5)

    # 执行js代码
    def execute_script(self, jscontent):
        return self.dr.execute_script(jscontent)

    # 鼠标左击
    def action_click(self, ele):
        ActionChains(self.dr).click(ele).perform()

    # 鼠标右击
    def action_right_click(self, ele):
        ActionChains(self.dr).context_click(ele).perform()

    # 鼠标移动到某个坐标
    def move_ele(self, ele):
        ActionChains(self.dr).move_to_element(ele).perform()

    # 将元素1移动到元素2
    def drag_and_drop(self, e1, e2):
        ActionChains(self.dr).drag_and_drop(e1, e2).perform()

    # 用户名输入框
    @get_parameters("name", "account")
    def get_username_ele(self, ele):
        return ele

    # 密码输入框
    @get_parameters("name", "password")
    def get_password_ele(self, ele):
        return ele

    # 登录按钮
    @get_parameters("xpath", "/html/body/div/div[2]/form/div[5]/button")
    def get_loginbutton_ele(self, ele):
        return ele

    # 公司名称元素
    @get_parameters("xpath", '//*[@id="dhb-wrap"]/div/div[2]/div/div/h2')
    def get_company_ele(self, ele):
        return ele

    # 商品按钮元素
    @get_parameters("xpath",
                    '//*[@id="app"]/div/div/div[1]/div[3]/div[1]/div[1]/ul/li[2]/span')
    def get_goods_ele(self, ele):
        return ele

    # 界面关闭元素
    @get_parameters("xpath",
                    '//*[@id="app"]/div/div/div[1]/div[2]/div[2]/div/div/i')
    def get_close_ele(self, ele):
        return ele

    # 商品列表
    @get_parameters("xpath",
                    '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[2]/a')
    def get_goodslist_ele(self, ele):
        return ele

    # 商品图片
    @get_parameters("xpath",
                    '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[3]/a')
    def get_goodsimage_ele(self, ele):
        return ele

    # 商品明细
    @get_parameters("xpath",
                    '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[4]/a')
    def get_goodsinfo(self, ele):
        return ele

    # 商品价格
    @get_parameters("xpath",
                    '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[5]/a')
    def get_goodsprice(self, ele):
        return ele

    # 商品回收站
    @get_parameters("xpath",
                    '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[6]/a')
    def get_goodsrecycle(self, ele):
        return ele

    # 商品经营范围
    @get_parameters("xpath",
                    '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[7]/a')
    def get_goodsscope(self, ele):
        return ele

    # 固定按钮
    @get_parameters("xpath",
                    '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[1]')
    def get_fix_button(self, ele):
        return ele

    # 商品列表-查询按钮
    @get_parameters("xpath", '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[2]/button[1]')
    def get_good_querybutton_ele(self, ele):
        return ele

    # 商品列表-搜索框
    @get_parameters("xpath", '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div[1]/div[1]/span/input')
    def get_good_search_ele(self, ele):
        return ele

    # 商品列表-商品分类
    def get_good_type_ele(self, num):
        ele = self.dr.find_element_by_xpath(f'//*[@id="rc-tree-select-list_1"]/ul/li[{num}]')
        return ele

    # 商品列表-展开按钮
    @get_parameters("xpath", '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[2]/a')
    def get_zhankai_button(self, ele):
        return ele

    # 商品列表下方总条数元素
    @get_parameters("xpath", '//*[@id="dhb-content"]/div[4]/div/div[2]/ul/li[1]')
    def get_total(self, ele):
        return ele

    # 商品列表第一条记录元素
    @get_parameters("xpath",
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[1]')
    def get_first_num(self, ele):
        return ele

    # 商品列表第一条记录的勾选框元素
    @get_parameters("xpath",
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[2]/div[2]/div/div/table/tbody/tr[1]/td[1]/span/label/span/input')
    def get_first_button(self, ele):
        return ele

    # 商品列表第一条记录的商品名称元素
    @get_parameters("xpath",
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[1]/div[2]/div/table/tbody/tr[1]/td[4]/div/a')
    def get_first_name(self, ele):
        return ele

    # 商品列表下方批量操作元素
    @get_parameters("xpath", '//*[@id="dhb-content"]/div[4]/div/div[1]/button[1]')
    def get_mul_option(self, ele):
        return ele

    # 商品列表下方批量操作中设置商品标识元素
    @get_parameters("xpath", '/html/body/div[3]/div/div/ul/li[7]')
    def get_set_logo(self, ele):
        return ele

    # 商品列表下方批量操作中设置新品标识元素
    @get_parameters("xpath", '/html/body/div[4]/div/div[2]/div/div[2]/div[2]/div/div/div/div[1]/label/span[1]/input')
    def set_new_logo(self, ele):
        return ele

    # 商品列表下方批量操作中设置推荐标识元素
    @get_parameters("xpath", '/html/body/div[4]/div/div[2]/div/div[2]/div[2]/div/div/div/div[2]/label/span[1]/input')
    def set_recommend_logo(self, ele):
        return ele

    # 商品列表下方批量操作中设置热销品标识元素
    @get_parameters("xpath", '/html/body/div[4]/div/div[2]/div/div[2]/div[2]/div/div/div/div[3]/label/span[1]/input')
    def set_hot_logo(self, ele):
        return ele

    # 商品列表下方批量操作中设置赠品标识元素
    @get_parameters("xpath", '/html/body/div[4]/div/div[2]/div/div[2]/div[2]/div/div/div/div[4]/label/span[1]/input')
    def set_gift_logo(self, ele):
        return ele

    # 商品列表下方批量操作中设置精选标识元素
    @get_parameters("xpath", '/html/body/div[4]/div/div[2]/div/div[2]/div[2]/div/div/div/div[5]/label/span[1]/input')
    def set_select_logo(self, ele):
        return ele

    # 设置商品标识确定元素
    @get_parameters("xpath", '/html/body/div[4]/div/div[2]/div/div[2]/div[3]/div/button[2]')
    def set_accept_logo(self, ele):
        return ele

    # 设置商品标识取消元素
    @get_parameters("xpath", '/html/body/div[4]/div/div[2]/div/div[2]/div[3]/div/button[1]')
    def set_dismiss_logo(self, ele):
        return ele

    # 获取操作提示信息
    @get_parameters("xpath", '/html/body/div[2]/div/span')
    def option_info(self, ele):
        return ele

    # 商品图片-左上方标题元素
    @get_parameters("xpath",
                    '/html/body/div[3]/div[2]/div[3]/div[1]/a')
    def get_good_image_page(self, ele):
        return ele

    # 商品图片-获取第一行的某个图片
    @get_parameters("xpath", '//*[@id="img-list-1412530"]/div[1]/img')
    def get_image2(self, ele):
        return ele

    # 商品图片 - 获取第一行的某个图片
    @get_parameters("xpath", '//*[@id="img-list-1412529"]/div[1]/img')
    def get_image1(self, ele):
        return ele

    # 商品明细第一条记录的下架按钮
    @get_parameters("xpath",
                    '//*[@id="expandTable"]/div/div/div/div/div/div[1]/div[3]/div/div/table/tbody/tr[1]/td/div/a[2]')
    def get_off_shelf(self, ele):
        return ele

    # 商品明细下架界面的提示信息
    @get_parameters("xpath",
                    '/html/body/div[4]/div/div[2]/div/div[2]/div/div/div[1]/div/div')
    def get_off_info(self, ele):
        return ele

    # 商品明细下架界面的确认按钮
    @get_parameters("xpath",
                    '/html/body/div[4]/div/div[2]/div/div[2]/div/div/div[2]/button[2]/span')
    def get_accept_button(self, ele):
        return ele

    # 商品明细下架界面的取消按钮
    @get_parameters("xpath",
                    '/html/body/div[4]/div/div[2]/div/div[2]/div/div/div[2]/button[1]/span')
    def get_dismiss_button(self, ele):
        return ele

    # 商品经营范围靠右边的元素，移动到此处即出现编辑按钮
    @get_parameters("xpath",
                    '//*[@id="row-goods-id-61342038"]/td[8]/p')
    def get_first_scope(self, ele):
        return ele

    # 商品经营范围出现编辑按钮元素
    @get_parameters("xpath",
                    '//*[@id="shieldTip61342038"]/div/a')
    def get_scope_edit(self, ele):
        return ele

    # 获取编辑界面的左下角提示信息
    @get_parameters("xpath",
                    '//*[@id="fm-goods-add"]/div[2]/span')
    def get_scope_editpage(self, ele):
        return ele

    # 余托弟
    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[3]/div[1]/div[1]/ul/li[1]/span')
    def get_order_ele(self, ele):
        '''获取元素'''
        return ele

    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[1]')
    def get_fixed_ele(self, ele):
        '''获取固定元素用作断言'''
        return ele

    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[2]/a')
    def get_indent_ele(self, ele):
        '''获取订货单元素'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[1]/span')
    def get_indenttext_ele(self, ele):
        '''获取点击订货单后的文本信息'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div[1]/div[1]/span/input')
    def get_search_ele(self, ele):
        '''获取搜索框'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[2]/button[1]')
    def get_query_ele(self, ele):
        '''获取查询按钮'''
        return ele

    @get_parameters('xpath',
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[1]/div[2]/div/table/tbody/tr')
    def get_IDsearchtext_ele(self, ele):
        '''获取id查询之后返回的文本信息'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[2]/button[2]')
    def get_reset_ele(self, ele):
        '''获取重置元素按钮'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[1]/div[3]')
    def get_inputNoIdtext_ele(self, ele):
        '''获取数据库不存在ID查询返回文本信息'''
        return ele

    @get_parameters('link text', '首页')
    def get_indentHomepage_ele(self, ele):
        '''订货单页面首页'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[1]/button')
    def get_add__ele(self, ele):
        '''获取新增元素'''
        return ele

    @get_parameters('xpath', '//*[@id="pre-version"]/iframe[1]')
    def get_addiframe__ele(self, ele):
        '''新增订单frame标签元素'''
        iframe = self.dr.switch_to_frame(ele)
        return iframe

    @get_parameters('xpath', '/html/body/div[3]/div[2]/div[3]/div[1]/a')
    def get_addorder__ele(self, ele):
        '''获取新增订单元素'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[2]/a')
    def get_indentUnfold__ele(self, ele):
        '''获取展开元素'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div[3]/div[8]/label/span[2]')
    def get_unfoldHide__ele(self, ele):
        '''获取隐藏已取消元素'''
        return ele

    @get_parameters('xpath',
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[3]/div[2]/div/div/table/tbody/tr[1]/td/div/a[1]')
    def get_indentCheck__ele(self, ele):
        '''获取查看元素'''
        return ele

    @get_parameters('xpath', '//*[@id="pre-version"]/iframe[1]')
    def get_orderiframe__ele(self, ele):
        '''获取订单详情界面frame标签元素'''
        iframe = self.dr.switch_to_frame(ele)
        return iframe

    @get_parameters('xpath', '/html/body/div[3]/div[2]/div[3]/div[1]/a')
    def get_orderDetail__ele(self, ele):
        '''获取订单详情title元素'''
        return ele

    @get_parameters('xpath', '/html/body/div[3]/div[2]/div[3]/div[2]/div[1]/div/div/div[1]')
    def get_orderDetailcon__ele(self, ele):
        '''获取订单详情内容元素'''
        return ele

    @get_parameters('xpath',
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[1]/div[2]/div/table/tbody/tr[4]/td[4]/div/a')
    def get_cusName__ele(self, ele):
        '''获取要点击客户名称元素'''
        return ele

    @get_parameters('xpath', '//*[@id="pre-version"]/iframe[1]')
    def get_cusiframe__ele(self, ele):
        '''获取客户详情界面frame标签元素'''
        iframe = self.dr.switch_to_frame(ele)
        return iframe

    @get_parameters('xpath', '/html/body/div[3]/div[2]/div[3]/div[1]/a')
    def get_cusdetail__ele(self, ele):
        '''获取客户详情文本元素'''
        return ele

    @get_parameters('xpath', '/html/body/div[3]/div[2]/div[3]/div[2]/div/div[1]/div')
    def get_cusDetailCon__ele(self, ele):
        '''获取客户详情内容元素'''
        return ele

    @get_parameters('xpath',
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[3]/div[2]/div/div/table/tbody/tr[1]/td/div/a[2]')
    def get_chuku__ele(self, ele):
        '''获取出库元素'''
        return ele

    @get_parameters('xpath', '//*[@id="pre-version"]/iframe[1]')
    def get_chukuiframe__ele(self, ele):
        '''获取客户详情界面frame标签元素'''
        iframe = self.dr.switch_to_frame(ele)
        return iframe

    @get_parameters('xpath', '//*[@id="submit-button1"]')
    def get_chukuSbmit__ele(self, ele):
        '''获取出库跳转后界面确认提交元素'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div[1]/div[3]/div/div/div/div[1]')
    def get_orderZT__ele(self, ele):
        '''获取订单状态元素'''
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div[1]/div[3]/div/div/div/div[2]')
    def get_ordercheckBox__ele(self, ele):
        '''获取订单状态下拉框元素'''
        return ele

    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[2]/div[2]/div/div[2]/i')
    def get_close__ele(self, ele):
        '''获取订单状态下拉框元素'''
        return ele

    # 王可庆
    @get_parameters("link text", "首页")
    def get_pagejump_ele(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[2]/div[1]/h2')
    def get_dinghuotubiao(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[3]/div[1]/div[1]/ul/li[5]/span')
    def get_keuhu_ele(self, ele):
        return ele

    @get_parameters('link text', '客户列表')
    def get_kehuliebiao(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[1]/span')
    def get_kehuliebiao_text(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[1]/i')
    def get_wenhao(self, ele):
        return ele

    @get_parameters('xpath', '/html/body/div[3]/div/div/div/div[2]/div/div/div')
    def get_wenhaotext(self, ele):
        return ele

    @get_parameters('xpath', '/html/body/div[3]/div/div/div/div[2]/div/div/div/p[7]/a')
    def get_bangzhu(self, ele):
        return ele

    @get_parameters('id', 'ser_key')
    def get_shurukuang(self, ele):
        return ele

    @get_parameters('link text', '首页')
    def get_shouye(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div/div/h2')
    def get_shouyetext(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[1]/div[2]/button[1]')
    def get_xinzeng(self, ele):
        return ele

    @get_parameters('link text', '新增客户')
    def get_xinzengtext(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[2]/div[2]/div/div[2]/i')
    def get_closexinzeng(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[1]/div[2]/button[2]')
    def get_shengluehao(self, ele):
        return ele

    @get_parameters('xpath', '/html/body/div[3]/div/div/ul')
    def get_shengluehaotext(self, ele):
        return ele

    @get_parameters('xpath', '/html/body/div[3]/div/div/ul/li[1]')
    def get_shengluehaofenlei(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="pre-version"]/iframe[1]')
    def get_qiehuan(self, ele):
        return ele

    @get_parameters('link text', '新增客户')
    def get_sanshengluexinzeng(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[2]/div[2]/div/div[2]/i')
    def get_closeyemian(self, ele):
        return ele

    @get_parameters('xpath', '/html/body/div[3]/div/div/ul/li[2]')
    def get_shengluehaopiliang(self, ele):
        return ele

    @get_parameters('link text', '批量导入')
    def get_piliangguanlitext(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[2]/a')
    def get_zhankai(self, ele):
        return ele

    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div[2]/div[6]/label/span[2]')
    def get_yincang(self, ele):
        return ele

    # 王清玉
    ###################供应商-搜索############################
    # 点击库存
    @get_parameters("xpath", '//*[@id="app"]/div/div/div[1]/div[3]/div[1]/div[1]/ul/li[4]/span')
    def get_stockbutton_ele(self, ele):
        return ele

    # 点击固定按钮
    @get_parameters("xpath", '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[1]')
    def get_FixedButton_ele(self, ele):
        return ele

    # 点击SQE(供应商管理简写)
    @get_parameters("xpath", '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[2]/a')
    def get_SQEButton_ele(self, ele):
        return ele

    # 切换到嵌套页面里
    @get_parameters("xpath", '//*[@id="pre-version"]/iframe[1]')
    def iframes(self, ele):
        return ele

    # 获取SQE的页面内容,做断言用
    @get_parameters("xpath", '/html/body/div[3]/div[2]/div[3]/div[1]/a')
    def get_SQEText_ele(self, ele):
        return ele

    # 定位搜索栏
    @get_parameters("xpath", '//*[@id="kw"]')
    def get_Search_ele(self, ele):
        return ele

    # 点击搜索按钮
    @get_parameters("xpath", '//*[@id="btn-search"]')
    def get_SearchButton_ele(self, ele):
        return ele

    # 获取页面元素做断言
    @get_parameters("xpath", '//*[@id="Supplier-index-list-fresh-box"]/table/tbody/tr/td[2]')
    def get_SearchResult_ele(self, ele):
        return ele

    ###################供应商-新增供应商填写全部信息############################
    # 点击新增供应商按钮
    @get_parameters("xpath", '/html/body/div[3]/div[2]/div[3]/div[2]/div/div/div/div/div[1]/div/div[2]/button')
    def get_AddSQEButton_ele(self, ele):
        return ele

    # 供应商名字
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[1]/div[1]/div/label[2]/input')
    def get_AddSQEName_ele(self, ele):
        return ele

    # 供应商编号
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[1]/div[2]/div/label[2]/input')
    def get_AddSQENumber_ele(self, ele):
        return ele

    # 点击联系地址
    @get_parameters('xpath', '//*[@id="dhbcity-area_id_field"]')
    def get_AddSQEAddress_ele(self, ele):
        return ele

    # 选择省份
    @get_parameters('xpath', '//*[@id="citybox-dhbcity-area_id_field"]/div[2]/div[1]/div[2]/a[1]')
    def get_SelProvince_ele(self, ele):
        return ele

    # 选择城市
    @get_parameters('xpath', '//*[@id="citybox-dhbcity-area_id_field"]/div[3]/a')
    def get_SelCity_ele(self, ele):
        return ele

    # 选择县区
    @get_parameters('xpath', '//*[@id="citybox-dhbcity-area_id_field"]/div[4]/a[6]')
    def get_SelCount_ele(self, ele):
        return ele

    # 详细地址
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[1]/div[4]/div/label[2]/input')
    def get_AddSQEDetailAddress_ele(self, ele):
        return ele

    # 备注
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[1]/div[5]/div/label[2]/textarea')
    def get_AddSQERemarks_ele(self, ele):
        return ele

    # 联系人姓名
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[1]/div[6]/div/label[2]/input')
    def get_AddSQELinkName_ele(self, ele):
        return ele

    # 手机号
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[1]/div[7]/div/label[2]/input')
    def get_AddSQELinkPhone_ele(self, ele):
        return ele

    # 座机
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[1]/div[8]/div/label[2]/input')
    def get_AddSQELinkPlane_ele(self, ele):
        return ele

    # 邮箱
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[1]/div[9]/div/label[2]/input')
    def get_AddSQELinkEmail_ele(self, ele):
        return ele

    # 开户名称
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[2]/div[1]/div/label[2]/input')
    def get_AddSQEOpenName_ele(self, ele):
        return ele

    # 开户银行
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[2]/div[2]/div/label[2]/input')
    def get_AddSQEOpenBank_ele(self, ele):
        return ele

    # 银行账号
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[2]/div[3]/div/label[2]/input')
    def get_AddSQEBankAcc_ele(self, ele):
        return ele

    # 开票抬头
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[2]/div[4]/div/label[2]/input')
    def get_AddSQEInvoiceTitle_ele(self, ele):
        return ele

    # 纳税人识别号
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[2]/div[5]/div/label[2]/input')
    def get_AddSQETaxpayerNum_ele(self, ele):
        return ele

    # 点击确认按钮
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/footer/button[1]')
    def get_ConButton_ele(self, ele):
        return ele

    # 断言期待值                 //*[@id="Supplier-index-list-fresh-box"]/table/tbody/tr[1]/td[2]
    @get_parameters('xpath', '//*[@id="Supplier-index-list-fresh-box"]/table/tbody/tr[1]/td[2]')
    def get_assertaddSqe_ele(self, ele):
        return ele

    ###################供应商-新增供应商只填写供应商名字############################
    # 点击新增供应商按钮
    @get_parameters("xpath", '/html/body/div[3]/div[2]/div[3]/div[2]/div/div/div/div/div[1]/div/div[2]/button')
    def get_AddSQEButton_ele(self, ele):
        return ele

    # 供应商名字
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/div/div[1]/div[1]/div/label[2]/input')
    def get_AddSQEName_ele(self, ele):
        return ele

    # 点击确认按钮
    @get_parameters('xpath', '//*[@id="form-supplier-add"]/footer/button[1]')
    def get_ConButton_ele(self, ele):
        return ele

    ###################采购单-查询############################
    # 定位采购单按钮
    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[3]/a')
    def get_OrderButton_ele(self, ele):
        return ele

    # 定位订单号
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div[1]/div[1]/span/input')
    def get_OrderId_ele(self, ele):
        return ele

    # 定位交货日期
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div[1]/div[2]/div/div[1]/span/div/input')
    def get_OrderStartDate_ele(self, ele):
        return ele

    # 定位订单状态下拉框
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div[1]/div[3]/div/div')
    def get_OrderStatus_ele(self, ele):
        return ele

    # 定位订单状态下拉框中的值
    @get_parameters('xpath', '/html/body/div[3]/div/div/div/ul/li[3]')
    def get_OrderStatusValue_ele(self, ele):
        return ele

    # 定位查询按钮
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[2]/button[1]')
    def get_OrderSearchButton_ele(self, ele):
        return ele

    # 采购单断言                //*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[1]/div/table/tbody/tr[1]/td[8]/span/span[2]
    @get_parameters('xpath',
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[1]/div/table/tbody/tr[1]/td[8]/span/span[2]')
    def get_assertSearchOrder_ele(self, ele):
        return ele

    ###################采购单-新增采购单############################
    # 定位新增按钮
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[1]/a')
    def get_AddOrder_ele(self, ele):
        return ele

    # 定位选择供应商下拉框
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[1]/div/div[2]/div/div/div/div/div[1]')
    def get_SelectSQE_ele(self, ele):
        return ele

    # 定位选择供应商下拉框值
    @get_parameters('xpath', '/html/body/div[4]/div/div/div/ul/li[1]')
    def get_SelectSQEValue_ele(self, ele):
        return ele

    # 定位选择入库仓库
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[3]/div/div/div/div[1]')
    def get_SelectHouse_ele(self, ele):
        return ele

    # 定位选择入库仓库下拉框值
    @get_parameters('xpath', '/html/body/div[5]/div/div/div/ul/li[1]')
    def get_SelectHouseValue_ele(self, ele):
        return ele

    # 定位选择交货日期
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/div[1]/div/div[4]/span/div/input')
    def get_SelectDeliveryDate_ele(self, ele):
        return ele

    # 定位日期此刻按钮
    @get_parameters('xpath', '/html/body/div[6]/div/div/div/div/div[2]/div[3]/span/a[1]')
    def get_SelectDeliveryDateSure_ele(self, ele):
        return ele

    # 定位输入商品名称框
    @get_parameters('xpath',
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/table/tbody/tr[1]/td[3]/div/div/div/div/div[2]/div/input')
    def get_SelectGoodsName_ele(self, ele):
        return ele

    # 定位输入商品名后出现的下拉框的值
    @get_parameters('xpath', '/html/body/div[7]/div/div/div/ul/li[3]')
    def get_SelectGoodsNameValue_ele(self, ele):
        return ele

    # 定位采购数量框
    @get_parameters('xpath',
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/table/tbody/tr[1]/td[8]/div/div[2]/input')
    def get_SelectGoodsNum_ele(self, ele):
        return ele

    # 定位进货价框
    @get_parameters('xpath',
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/table/tbody/tr[1]/td[9]/div/div[2]/input')
    def get_SelectGoodsPrice_ele(self, ele):
        return ele

    # 定位订单备注框
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/textarea[1]')
    def get_GoodsRemark_ele(self, ele):
        return ele

    # 定位内部沟通框
    @get_parameters('xpath', '//*[@id="dhb-wrap"]/div/div[2]/textarea[2]')
    def get_GoodsComm_ele(self, ele):
        return ele

    # 定位确定按钮
    @get_parameters('xpath', '//*[@id="dhb-content"]/div[4]/div/div[2]/button[2]')
    def get_SureButton_ele(self, ele):
        return ele

    # 断言新增采购单            //*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[1]/div/table/tbody/tr[1]/td[5]
    @get_parameters('xpath',
                    '//*[@id="dhb-wrap"]/div/div[2]/div[2]/div/div/div/div/div/div[1]/div[1]/div/table/tbody/tr[1]/td[5]')
    def get_assertAddGoods_ele(self, ele):
        return ele

    ########################仓库管理-新增仓库#######################
    # 定位仓库管理按钮
    @get_parameters('xpath', '//*[@id="app"]/div/div/div[1]/div[3]/div[4]/div[2]/ul/li[14]/a')
    def get_DepotButton_ele(self, ele):
        return ele

    # 定位新增仓库按钮
    @get_parameters('xpath', '/html/body/div[3]/div[2]/div[3]/div[2]/div/div/div/div/div[1]/div/button')
    def get_AddDepotButton_ele(self, ele):
        return ele

    # 定位仓库名称
    @get_parameters('xpath', '//*[@id="fm-add-stock"]/div/div[1]/div/label[2]/input')
    def get_DepotName_ele(self, ele):
        return ele

    # 定位所在地
    @get_parameters('xpath', '//*[@id="dhbcity-area_id_field"]')
    def get_DepotAddress_ele(self, ele):
        return ele

    # 定位省份
    @get_parameters('xpath', '//*[@id="citybox-dhbcity-area_id_field"]/div[2]/div[1]/div[2]/a[1]')
    def get_DepotAddressProvince_ele(self, ele):
        return ele

    # 定位城市
    @get_parameters('xpath', '//*[@id="citybox-dhbcity-area_id_field"]/div[3]/a')
    def get_DepotAddressCity_ele(self, ele):
        return ele

    # 定位县区
    @get_parameters('xpath', '//*[@id="citybox-dhbcity-area_id_field"]/div[4]/a[1]')
    def get_DepotAddressCounty_ele(self, ele):
        return ele

    # 定位详细地址
    @get_parameters('xpath', '//*[@id="fm-add-stock"]/div/div[4]/div/label[2]/input')
    def get_DepotDetailAddress_ele(self, ele):
        return ele

    # 定位归属地
    @get_parameters('xpath', '//*[@id="dhb-treeview-area_id"]/div/ul/li[1]/label')
    def get_DepotHome_ele(self, ele):
        return ele

    # 定位联系电话
    @get_parameters('xpath', '//*[@id="phone"]')
    def get_DepotLinkPhone_ele(self, ele):
        return ele

    # 定位确定按钮
    @get_parameters('xpath', '//*[@id="submit-button"]')
    def get_DepotSubmiteButton_ele(self, ele):
        return ele

    # 断言新增仓库             //*[@id="Stock-stockManager-list-fresh-box"]/table/tbody/tr[9]/td[3]
    @get_parameters('xpath', '//*[@id="Stock-stockManager-list-fresh-box"]/table/tbody/tr[10]/td[3]')
    def get_assertAddDepot_ele(self, ele):
        return ele

    ########################仓库管理-修改#######################
    # 定位需要修改的仓库
    @get_parameters('xpath', '//*[@id="Stock-stockManager-list-fresh-box"]/table/tbody/tr[10]/td[1]')
    def get_modDepot_ele(self, ele):
        return ele

    # 定位元素用于鼠标移动
    @get_parameters('xpath', '//*[@id="Stock-stockManager-list-fresh-box"]/table/tbody/tr[10]/td[8]/p')
    def get_moveMouseElement_ele(self, ele):
        return ele

    # 定位修改按钮,点击按钮
    @get_parameters('xpath', '//*[@id="Stock-stockManager-list-fresh-box"]/table/tbody/tr[10]/td[8]/div/div/a[1]')
    def get_modDepotButton_ele(self, ele):
        return ele

    # 定位备注,修改备注
    @get_parameters('xpath', '//*[@id="fm-add-stock"]/div/div[9]/div/label[2]/textarea')
    def get_modDepotRemark_ele(self, ele):
        return ele

    # 定位确定按钮
    @get_parameters('xpath', '//*[@id="submit-button"]')
    def get_modDepotSureButton_ele(self, ele):
        return ele

    # //*[@id="Stock-stockManager-list-fresh-box"]/table/tbody/tr[9]/td[8]/p
    # 断言仓库修改
    @get_parameters('xpath', '//*[@id="Stock-stockManager-list-fresh-box"]/table/tbody/tr[10]/td[8]/p')
    def get_assertUpdateDepot_ele(self, ele):
        return ele

    ########################仓库管理-删除#######################
    # 定位删除的元素
    @get_parameters('xpath', '//*[@id="Stock-stockManager-list-fresh-box"]/table/tbody/tr[10]/td[1]')
    def get_DeleteDepot_ele(self, ele):
        return ele

    # 定位删除按钮
    @get_parameters('xpath', '//*[@id="Stock-stockManager-list-fresh-box"]/table/tbody/tr[10]/td[8]/div/div/a[2]')
    def get_DeleteDepotButton_ele(self, ele):
        return ele

    # 定位弹框点击确认           /html/body/div[8]/div/div/div[3]/button[1]
    @get_parameters('xpath', '/html/body/div[8]/div/div/div[3]/button[1]')
    def get_DeleteDepotAlter_ele(self, ele):
        return ele

    # /html/body/div[8]/div/div/div[2]/h4
    # 断言删除
    @get_parameters('xpath', '/html/body/div[8]/div/div/div[2]/h4')
    def get_assertDeleteDepotAlter_ele(self, ele):
        return ele
